package com.firemoss.consumermediatorexample.messaging
{
	import com.firemoss.magicbus.messaging.fillter.BeforeFilter;
	
	import mx.messaging.messages.AsyncMessage;

	public class OutboundChatFilter implements BeforeFilter
	{
		public function OutboundChatFilter()
		{
		}

		public function before(parameters:Array):Array
		{
			var msg : AsyncMessage = parameters[ 0 ]
			
			msg.body += " (Outbound Filter Applied)";
			
			return parameters
		}
		
	}
}